#ifndef _GUI_H_
#define _GUI_H_
// #include "userfont.h"
#include <stdio.h>


uint16_t LCD_BGR2RGB(uint16_t c);
void Gui_Circle(uint16_t X,uint16_t Y,uint16_t R,uint16_t fc); 
void Gui_DrawLine(uint16_t x0, uint16_t y0,uint16_t x1, uint16_t y1,uint16_t Color);  
void Gui_box(uint16_t x, uint16_t y, uint16_t w, uint16_t h,uint16_t bc);
void Gui_box2(uint16_t x,uint16_t y,uint16_t w,uint16_t h, uint8_t mode);
void DisplayButtonDown(uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2);
void DisplayButtonUp(uint16_t x1,uint16_t y1,uint16_t x2,uint16_t y2);
void Gui_DrawFont_GBK16(uint16_t x, uint16_t y, uint16_t fc, uint16_t bc, char *s);
void Gui_DrawFont_char(uint16_t x, uint16_t y, char s);
void Gui_DrawFont_GBK24(uint16_t x, uint16_t y, uint16_t fc, uint16_t bc, char *s);
void Gui_DrawFont_Num32(uint16_t x, uint16_t y, uint16_t fc, uint16_t bc, uint16_t num) ;
void Gui_DrawFont_num32(uint16_t x, uint16_t y, uint16_t fc, uint16_t bc, uint16_t num) ;
void LCD_ShowNum(uint8_t x,uint8_t y,uint16_t num,uint8_t len);
int oled_pow(uint8_t m,uint8_t n);
void lcd_draw_pic(uint8_t x,uint8_t y,uint8_t x_pixel,uint8_t y_pixel, uint16_t fc,uint16_t bc,char *s);
void lcd_draw_40sigcor1(uint8_t x,uint8_t y,uint16_t fc,uint16_t bc,char *s);
void lcd_draw_40sigcor(uint8_t x,uint8_t y,uint16_t fc,uint16_t bc,char *s);
void lcd_draw_image(uint8_t x,uint8_t y,uint8_t x_e,uint8_t y_e,uint8_t *color);
#endif


